import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:ulearning_app/common/widgets/popup_messages.dart';
import 'package:ulearning_app/pages/sign_in/notifier/sign_in_notifier.dart';

class SignInController {
  WidgetRef ref;
  SignInController(this.ref);

  void handleSignIn() {
    var state = ref.read(SignInNotifierProvider);
    String email = state.email;
    String password = state.password;
    if (email.isEmpty || password.isEmpty) {
      toastInfo("邮箱或密码为空");
      return;
    }
  }
}
